<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>LIST SỰ  KIỆN</title>
</head>
<body>
<h3 align="center">Quản lý sự kiện</h3>
<table width="90%" class='table' >
<tr>
<th>Tiêu đề</th>
<th>Ngày Đăng</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>

<?php

 if (is_array($sukienModel->listSuKien))
  {
    foreach($sukienModel->listSuKien as $sukien)
    {
?>
	<tr>
        <td width='50%'><?php echo $sukien->tieude ?></td>
        <td><?php echo $sukien->ngaydang ?></td>
        <td><a href='control.php?action=view&id=<?php echo $sukien->id ?>'>Xem</a></td>
        <td><a href='control.php?action=sua&id=<?php echo $sukien->id ?>'>Sửa </a></td>
        <td><a href='control.php?action=xoa&id=<?php echo $sukien->id ?>'>Xóa</a></td>
    </tr>      
<?php
    }
  }
?>

</table> 
<br/>
<div align=center><h3><a href='control.php?action=add' >Thêm Sự Kiện </a></h3></div>
<div align=center><h3><a href='thoat.php' >Thoát </a></h3></div>
</body>